import { MessageBox } from "element-ui";

export function eConfirm({ type = 'warning', title = '提示', info, success }) {
  MessageBox.confirm(info, title, {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type
  }).then(() => {
    success && success()
  }).catch(() => {
  });
}